<?php
        if ( ! function_exists('devlism_remove_dir')){
                function devlism_remove_dir($dir){
                        if(is_dir($dir)){
                                $dir = (substr($dir, -1) != "/")? $dir."/":$dir;
                                $openDir = opendir($dir);
                                while($file = readdir($openDir)){
                                        if(!in_array($file, array(".", ".."))){
                                                if(!is_dir($dir.$file)){
                                                        unlink($dir.$file);
                                                }else{
                                                        remove_dir($dir.$file);
                                                }
                                        }
                                }
                                closedir($openDir);
                                rmdir($dir);
                        }
                }
        }
        
        if ( ! function_exists('devlism_redirect')){
                function devlism_redirect($url,$wait=0) {
                        echo "<html><head>";
                        echo "<meta http-equiv='refresh' content='$wait; URL=$url'>";
                        echo "</head></html>";
                        exit;
                }
        }
        
        if ( ! function_exists('devlism_redirect')){
                function devlism_redirect($url,$wait=0) {
                        echo "<html><head>";
                        echo "<meta http-equiv='refresh' content='$wait; URL=$url'>";
                        echo "</head></html>";
                        exit;
                }
        }
        
        
/* End of file my_helper.php */
/* Location: ./application/models/admin/helpers/my_helper.php */